package com.neolix.watch;

import android.os.Bundle;
import android.view.View;
import android.widget.Button;

import static com.neolix.watch.util.StringUtil.showText;

public class PayLoginActivity extends NeolixNaviagationBaseActivity {

    private Button loginButton;

    public PayLoginActivity() {
        super(R.layout.activity_pay_login);
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setTitle(getString(R.string.pay_login));

        loginButton = (Button) findViewById(R.id.login_button);
        loginButton.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                if (!NeolixApplication.getInstance().isConnectWatch()) {
                    showText(R.string.no_connect_watch);
                    return;
                }

                //TODO :发送登录信息到手表
            }
        });
    }
}
